/**
 * Created with JetBrains PhpStorm.
 * User: yuri
 * Date: 11/12/14
 * Time: 1:13 PM
 * To change this template use File | Settings | File Templates.
 */
define(
    ['models/baseMd'],
    function (BaseMd) {
        function Base()
        {
            this.start = function(){
                BaseMd.bind();
                this.setDatePicker($('#datetimepicker input'));
            };

            this.setDatePicker = function($block){
                $block.datepicker({
                    format: 'yyyy-mm-dd',
                    language: 'ru'
                });
            }

        };


        return new Base();
    });